package cn.itsource.fegin;

import cn.itsource.domain.Room;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(value = "room-server", fallbackFactory = RoomFeignClientFallback.class)
public interface RoomFeignClient {

    @GetMapping("/room/getById/{id}")
    Room getById(@PathVariable("id") Integer id);
}
